<!DOCTYPE html>
<html>
    <head>
        <title>Image set rendering</title>
        <link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org">
        <link rel="help" href="https://drafts.csswg.org/css-images-4/#image-set-notation">
        <meta name="assert" content="image-set rendering">
        <link rel="match"  href="image-set-rendering-ref.html">
        <style>
            .test {
                display: inline-block;
                width: 100px;
                height: 100px;
                background: red;
            }

            main {
                width: 500px;
            }
        </style>
    </head>
    <body>
        <p>All images below should be lime or a lime-green gradient when devicePixelRatio is 1 - no red!.</p>
        <main>
            <div class="test" style="background-image: image-set('/images/green.png' 1x)"></div>
            <div class="test" style="background-image: image-set('/images/red.png' 20dpi, linear-gradient(green, lightgreen) 2x)"></div>
            <div class="test" style="background-image: image-set(url('/images/green.png') 1x, url('/images/red.png') 2x)" ></div>
            <div class="test" style="background-image: image-set(radial-gradient(green, lightgreen) 1x, linear-gradient(yellow, red) 2x)" ></div>
            <div class="test" style="background-image: image-set(linear-gradient(green, lightgreen) 96dpi, '/images/red.png' 100dpi)" ></div>
            <div class="test" style="background-image: image-set(radial-gradient(red, yellow) 1.3x, url('/images/green.png') 100dpi, linear-gradient(red, yellow) 2.5x)" ></div>
            <div class="test" style="background-image: image-set('/images/red.png' 2x, url('/images/green.png') 1x, url('/images/yellow.png') 300dpi)" ></div>
            <div class="test" style="background-color: red; background-image: image-set('' 2x, url('/images/green.png') 1x)" ></div>
            <div class="test" style="background-image: image-set('/images/green.png' 1x)"></div>
            <div class="test" style="background-color: red; background-image: image-set('/images/green.png')" ></div>
            <div class="test" style="background-color: lime; background-image: image-set('/images/red.png' 0x)" ></div>
            <div class="test" style="background-color: lime; background-image: image-set('/images/red.png' 0x, url('/images/red.png') 2x)" ></div>
        </main>
    </body>
</html>
